package com.example.design.bilibili.prototype.deep.serialize;

import java.io.Serializable;

public class DeepCloneableTarget implements Serializable,Cloneable {


    private static final long serialVersionUID = -7510782881122379184L;

    private String cloneName;

    private String cloneClass;

    //构造器
    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    //因为该类的属性都是String  因此我们使用默认的clone即可
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
